<?php

namespace app\common\controller;


use think\Controller;

use think\Request;
use WeChatDeveloper\app\MiniLogin;

/**
 * 微信小程序的控制类
 */
class SmallBase extends Controller{


    public  $uid;
    public function _initialize(){

        parent::_initialize();
        $this->initUser();

    }

    public function initUser(){

        $config = [

            "appid"=>config("wx.appid"),
            "appsecret"=>config("wx.appsecret")
        ];
        $miniUser = new MiniLogin($config);


        $this->uid = Cache::get(input("token"));
        
        



    }




}